package mongodb.jackson;

import com.fasterxml.jackson.databind.module.SimpleModule;

public class BooleanModule extends SimpleModule {

    public static final String YES = "1";
    public static final String NO = "0";

    public BooleanModule() {
        this.addDeserializer(Boolean.class, new BooleanJsonDeserializer());
        this.addSerializer(Boolean.class, new BooleanJsonSerializer());
    }
}